import request from '@/utils/request'

// 查询活动中心配置列表
export function listActivityCenter(query) {
  return request({
    url: '/business/activityCenter/list',
    method: 'get',
    params: query
  })
}

// 查询活动中心配置详细
export function getActivityCenter(id) {
  return request({
    url: '/business/activityCenter/' + id,
    method: 'get'
  })
}

// 新增活动中心配置
export function addActivityCenter(data) {
  return request({
    url: '/business/activityCenter',
    method: 'post',
    data: data
  })
}

// 修改活动中心配置
export function updateActivityCenter(data) {
  return request({
    url: '/business/activityCenter',
    method: 'put',
    data: data
  })
}

// 删除活动中心配置
export function delActivityCenter(id) {
  return request({
    url: '/business/activityCenter/' + id,
    method: 'delete'
  })
}
